package com.ccy.product.productconsumer;

public class Product extends Thread{

    private Stock stock;

    public Product(String name,Stock stock){

        super(name);
        this.stock = stock;
    }

    @Override
    public void run() {
        while(true){
            stock.product();
        }
    }
}
